Skip to content

Conversation

@manishbalayan
Copy link

@manishbalayan manishbalayan commented Dec 4, 2025

Summary:

This PR related to issue #54789 updates the URL and URLSearchParams definitions in globals.d.ts to include missing standard properties and methods that are already supported by the runtime implementation.
Motivation:
I noticed that while the runtime supports standard URL operations (backed by whatwg-url), the TypeScript definitions were incomplete, causing unnecessary type errors when using standard Web APIs.

Changelog:

[GENERAL] [FIXED] - Added missing standard properties to URL (hash, host, pathname, etc.) and methods to URLSearchParams (get, set, delete, etc.).

Test Plan:

  1. Open globals.d.ts.
  2. Verify that URL interface now includes all standard properties.
  3. Verify that URLSearchParams interface now includes all standard methods.
  4. Verify that no new TypeScript errors are introduced.
    Screenshot:
    Before making changes
Screenshot 2025-12-04 at 11 38 58 PM After making changes ![Uploading Screenshot 2025-12-04 at 11.39.42 PM.png…]()

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 4, 2025
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Dec 4, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 5, 2025

@alanleedev has imported this pull request. If you are a Meta employee, you can view this in D88517037.

@meta-codesync meta-codesync bot closed this in f97b9a5 Dec 8, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Dec 8, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 8, 2025

@alanleedev merged this pull request in f97b9a5.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by Manish Balayan in f97b9a5

When will my fix make it into a release? | How to file a pick request?

@alanleedev
Copy link
Contributor

@manishbalayan thanks for your contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants